package com.itheima.service.imp;

import com.alibaba.dubbo.config.annotation.Service;
import com.itheima.dao.MemberDao;
import com.itheima.pojo.Member;
import com.itheima.service.MemberService;
import org.springframework.beans.factory.annotation.Autowired;

@Service
public class MemberServiceImp implements MemberService {
   @Autowired
   private MemberDao memberDao;

    @Override
    public Member findVipByPhone(String telephone) {
        return memberDao.findByPhone(telephone);
    }

    @Override
    public void registerVip(Member member) {
        memberDao.saveVip(member);
    }
}
